package com.yellowpage.ndc.data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;

/**
 * Classification entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "db_ndc.CLASSIFICATION")
public class Classification implements java.io.Serializable {

	// Fields

	private Long classId;
	private String code;
	private String line;
	private String name;
	private String engName;
	private String pyName;
	private String bxName;
	private String note;
	private Short status;

	// Constructors

	/** default constructor */
	public Classification() {
	}

	/** minimal constructor */
	public Classification(String code, String line, String name) {
		this.code = code;
		this.line = line;
		this.name = name;
	}

	/** full constructor */
	public Classification(String code, String line, String name,
			String engName, String pyName, String bxName, String note,
			Short status) {
		this.code = code;
		this.line = line;
		this.name = name;
		this.engName = engName;
		this.pyName = pyName;
		this.bxName = bxName;
		this.note = note;
		this.status = status;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "identity")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "CLASS_ID", unique = true, nullable = false, precision = 18, scale = 0)
	public Long getClassId() {
		return this.classId;
	}

	public void setClassId(Long classId) {
		this.classId = classId;
	}

	@Column(name = "CODE", nullable = false, length = 8)
	public String getCode() {
		return this.code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	@Column(name = "LINE", nullable = false, length = 12)
	public String getLine() {
		return this.line;
	}

	public void setLine(String line) {
		this.line = line;
	}

	@Column(name = "NAME", nullable = false, length = 128)
	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	@Column(name = "ENG_NAME", length = 512)
	public String getEngName() {
		return this.engName;
	}

	public void setEngName(String engName) {
		this.engName = engName;
	}

	@Column(name = "PY_NAME", length = 512)
	public String getPyName() {
		return this.pyName;
	}

	public void setPyName(String pyName) {
		this.pyName = pyName;
	}

	@Column(name = "BX_NAME", length = 512)
	public String getBxName() {
		return this.bxName;
	}

	public void setBxName(String bxName) {
		this.bxName = bxName;
	}

	@Column(name = "NOTE", length = 1024)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Column(name = "STATUS", precision = 3, scale = 0)
	public Short getStatus() {
		return this.status;
	}

	public void setStatus(Short status) {
		this.status = status;
	}

}